import 'package:json_annotation/json_annotation.dart';

part 'takeout_summary.g.dart';

@JsonSerializable()
class TakeoutSummary extends Object {

  @JsonKey(name: 'abnormalCount')
  int abnormalCount;

  @JsonKey(name: 'cancelOrderAmount')
  int cancelOrderAmount;

  @JsonKey(name: 'couponOrderAmount')
  int couponOrderAmount;

  @JsonKey(name: 'totalAmount')
  int totalAmount;

  @JsonKey(name: 'orderCount')
  int orderCount;

  @JsonKey(name: 'rejectOrderAmount')
  int rejectOrderAmount;

  @JsonKey(name: 'returnOrderAmount')
  int returnOrderAmount;

  @JsonKey(name: 'summary')
  int summary;

  TakeoutSummary(this.abnormalCount,this.cancelOrderAmount,this.couponOrderAmount,this.totalAmount,this.orderCount,this.rejectOrderAmount,this.returnOrderAmount,this.summary,);

  factory TakeoutSummary.fromJson(Map<String, dynamic> srcJson) => _$TakeoutSummaryFromJson(srcJson);

  Map<String, dynamic> toJson() => _$TakeoutSummaryToJson(this);

}


